<!DOCTYPE html>
<head>
    <meta charset="UTF-8">
    <title>免费注册</title>
    <link rel="stylesheet" href="/static/register.css">
</head>

<body>
    <section>
            <div class="main">
                <div class="form">
                    <h1>注册</h1>
                    <form action="/doregister/" method="post">
                        <div class="input">
                            <input type="text" placeholder="请输入真实姓名" name="rn" required>
                        </div>
                        <div class="input">
                            <input type="text" placeholder="请输入学号" name="sno" required>
                        </div>
                        <div class="input">
                            <input type="text" placeholder="请输入手机号" name="pno" required>
                        </div>
                        <div class="input">
                            <input type="password" placeholder="请输入登录密码" name="pwd" required>
                        </div>
                         <div class="input">
                            <input type="password" placeholder="请确认登录密码" name="vpwd" required>
                        </div>
                        <div class="input">
                            <input type="submit" value="注册">
                        </div>
                        <p class="register"><a href="http://127.0.0.1:8000/login">
                                已有账户，现在登陆
                            </a></p>
                    </form>
                    {% if messages %}
                        <script>
                            {% for msg in messages %}
                                alert('{{ msg.message }}');
                            {% endfor %}
                        </script>
                    {% endif %}
            </div>
        </div>
    </section>
</body>
</html>
